<script src="./js/jquery-1.6.4.min.js"></script>
<script src="./js/jquery.SuperSlide2.js"></script>
<script src="./js/index.js"></script>
<script>
    $(function () {
        $(".xyt_xl").click(function () {
            $(".xyt_nav").show();  //隐藏
        })
        $(".xyt_nav").mouseover(function () {
            $(".xyt_nav").show();  //显示
        })
        $(".xyt_nav").mouseout(function () {
            $(".xyt_nav").hide();  //显示
        })

        function checkUserinfo(){
            var doctorId=localStorage.getItem("doctorId");
            var sessionid=localStorage.getItem("sessionid");

            if(null=doctorId || doctorId.length==0 || null==sessionid || sessionid.length==0){
                window.location.href="index.html";
            }
        }
        checkUserinfo();
    })
    function ScrollImgLeft() {
        var speed = 50;
        var scroll_begin = document.getElementById("scroll_begin");
        var scroll_end = document.getElementById("scroll_end");
        var scroll_div = document.getElementById("scroll_div");
        scroll_end.innerHTML = scroll_begin.innerHTML;

        function Marquee() {
            if (scroll_end.offsetWidth - scroll_div.scrollLeft <= 0)
                scroll_div.scrollLeft -= scroll_begin.offsetWidth;
            else
                scroll_div.scrollLeft++;
        }
        var MyMar = setInterval(Marquee, speed);
        scroll_div.onmouseover = function () {
            clearInterval(MyMar);
        }
        scroll_div.onmouseout = function () {
            MyMar = setInterval(Marquee, speed);
        }
    }
</script>

<div class="header">
    <div class="container right-b clearfix">
        <div class="logo fl"><img src="./images/logo.jpg" /></div>

        <div class="center fl">
            <div style="width:96%;height:21px;margin:0 auto;white-space: nowrap;overflow:hidden;" id="scroll_div"
                class="scroll_div">
                <div id="scroll_begin">
                    <a href="#" target="_blank"><i>·</i><span>请各位医生完善个人基本信息 <b>2018-07-26</b></span></a>
                    <a href="#" target="_blank"><i>·</i><span>请各位医生完善个人基本信息 <b>2018-07-26</b></span></a>
                    <a href="#" target="_blank"><i>·</i><span>请各位医生完善个人基本信息 <b>2018-07-26</b></span></a>
                    <a href="#" target="_blank"><i>·</i><span>请各位医生完善个人基本信息 <b>2018-07-26</b></span></a>
                </div>
                <div id="scroll_end"></div>
            </div>
            <script type="text/javascript">
                ScrollImgLeft();
            </script>
        </div>

        <div class="data fr clearfix">
            <div class="tx">
                <img src="./images/logo.jpg" alt="" height="50" />
            </div>
            <div class="name">
                <p>欢迎胡凤亮医生<button class="name_button1" onclick="">退出登录</button></p>
                <button onclick="" id="name" class="xyt_xl">个人中心</button>

            </div>
            <div class="xyt_nav">
                <ul>
                    <a href="patientlibrary.html">
                        <li>患者库</li>
                    </a>
                    <a href="appointlist.html">
                        <li>预约列表</li>
                    </a>
                    <a href="workplan.html">
                        <li>工作计划</li>
                    </a>
                    <a href="usercenter.html">
                        <li>个人中心</li>
                    </a>
                    <a href="medicalservice.html">
                        <li>药方维护</li>
                    </a>
                </ul>
            </div>
        </div>
    </div>
</div>